package com.caiyouxi.partner.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.common.control.BaseController;
import com.caiyouxi.partner.model.ChannelAppConfigBean;
import com.caiyouxi.partner.service.ChannelAppConfigService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/11/21.
 */


@RestController
@RequestMapping("channel_app_config")
public class ChannelAppConfigController extends BaseController{

    private Logger logger = Logger.getLogger(ChannelAppConfigController.class);

    @Autowired
    private ChannelAppConfigService channelAppConfigService;



    /**
     *获取游戏配置信息
     **/
    @RequestMapping("get_app_config_info")
    public ResData get_app_config_info(@RequestBody ChannelAppConfigBean bean){
        logger.info("============================取游戏配置信息============================");
        return channelAppConfigService.get_app_config_info(bean);
    }

    /**
     *获取游戏配置信息列表
     **/
    @RequestMapping("get_app_config_list")
    public ResData get_app_config_list(@RequestBody ChannelAppConfigBean bean){
        logger.info("============================获取游戏配置信息列表============================");
        return channelAppConfigService.get_app_config_list(bean);
    }

    /**
     *新增游戏配置信息
     **/
    @RequestMapping("add_app_config")
    public ResData add_app_config(@RequestBody ChannelAppConfigBean bean){
        logger.info("============================新增游戏配置信息============================");
        return channelAppConfigService.add_app_config(bean);
    }

    /**
     修改游戏配置信息
     **/
    @RequestMapping("update_app_config")
    public ResData update_app_config(@RequestBody ChannelAppConfigBean bean){
        logger.info("============================修改游戏配置信息============================");
        return channelAppConfigService.update_app_config(bean);
    }

    /**
     *删除游戏配置信息
     **/
    @RequestMapping("delete_app_config")
    public ResData delete_app_config(@RequestBody ChannelAppConfigBean bean){
        logger.info("============================删除游戏配置信息============================");
        return channelAppConfigService.delete_app_config(bean);
    }



}
